﻿<Window x:Class="XEasyFileSearch.SettingsWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="SettingsWindow" Height="200" Width="566" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen"
        xmlns:set="clr-namespace:XEasyFileSearch.Properties"
        xmlns:tk="clr-namespace:Xceed.Wpf.Toolkit;assembly=WPFToolkit.Extended">
    <Grid>
        <Grid.Resources >
            <set:Settings x:Key="_set" />
        </Grid.Resources>
        <Grid.RowDefinitions >
            <RowDefinition  Height="50"/>                    
            <RowDefinition  />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions >
            <ColumnDefinition Width="126" />
            <ColumnDefinition Width="418" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Text="Keresési mappa:" VerticalAlignment="Center"  Margin="4"/>
        <StackPanel   Grid.Row="0" Grid.Column="1" Orientation="Horizontal"  >
            <TextBox TextWrapping="Wrap" Width="350" Text="{Binding Source={StaticResource _set}, Path=Default.DefaultSearchPath, Mode=TwoWay}" />
            <Button Margin="4" Command="{Binding Source={StaticResource Locator}, Path=Main.OpenFileDialogCommand}">
                <Image Source="/XEasyFileSearch;component/Images/folderopen1.png"  />
            </Button>
        </StackPanel>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right"  Grid.Row="3" Grid.Column="1" >
            <Button Margin="2" Content="Mentés" Click="Button_Click" />
            <Button Margin="2" Content="Kilépés" Click="Button_Click_1" />
        </StackPanel>
    </Grid>
</Window>
